package dao;

import java.util.List;

import domain.LearnRes;


/**
 * 课件管理Dao
 * 
 * Jun 2, 2009
 *
 * @author Fabian
 *
 */
public interface LearnResMagDao {
	/**
	 * 获取一页的LearnRes (一般课件)
	 */
	public List<LearnRes> getPageLearnRes(int start, int limit);
	/**
	 * 获取所有的LearnRes记录数(一般课件)
	 */
	public int getTotalCount();
	/**
	 * 获取一页的LearnRes(实验课件)
	 */
	public List<LearnRes> getPageTestLearnRes(int start, int limit);
	/**
	 * 获取所有的LearnRes记录数(实验课件)
	 */
	public int getTestTotalCount();
	/**
	 * 添加LearnRes
	 * @param t
	 * @return
	 */
	public boolean addLearnRes(LearnRes n);
	/**
	 * 修改LearnRes
	 * @param t
	 * @return
	 */
	public boolean modifyLearnRes(LearnRes n);
	/**
	 * 删除id表示的LearnRes
	 * @return
	 */
	public boolean delLearnRes(int id);
	/**
	 * LearnRes的浏览次数加一
	 * @return
	 */
	public boolean addSeeCount(int id);
	/**
	 * LearnRes的下载次数加一
	 * @return
	 */
	public boolean addDownCount(int id);
	/**
	 * 获取LearnRes
	 * @return
	 */
	public LearnRes getLearnRes(int id);
}
